<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/Public/matrix/css/bootstrap.min.css" />
<link rel="stylesheet" href="/Public/matrix/css/matrix-style.css" />
<link rel="stylesheet" href="/Public/matrix/css/uniform.css" />
<link rel="stylesheet" href="/Public/matrix/css/select2.css" />
<script src="/Public/matrix/js/jquery.min.js"></script> 
<script src="/Public/matrix/js/bootstrap.min.js"></script> 
<script src="/Public/matrix/js/jquery.uniform.js"></script> 
<script src="/Public/matrix/js/select2.min.js"></script> 
<script src="/Public/layer/layer.js"></script>
<script type="text/javascript" src="/Public/layer/public.js"></script>
</head>
<body>


  <div class="row-fluid">
  <div class="span12">
        <div class="widget-box">

          <div class="widget-content nopadding">
             <form class="form-horizontal" method="post" id="fromitem" onsubmit="ajaxSubmit('fromitem');return false;" action="<?php echo U('AuthRule/add');?>" >

              <div class="control-group">
                <label class="control-label">父级菜单:</label>
                <div class="controls">
                  <select name="pid" class="span11">
                   <?php echo R('AuthRule/createTreeSelect',array(),'Model');?>
                  </select>
                </div>
              </div>

              <div class="control-group">
                <label class="control-label">菜单名称:</label>
                <div class="controls">
                  <input class="span11" type="text" name="title" />
                </div>
              </div>

              <div class="control-group">
                <label class="control-label">规则标识:</label>
                <div class="controls">
                  <input type="text" class="span11" name="name" />
                </div>
              </div>

              <div class="control-group">
                <label class="control-label">ICON标识:</label>
                <div class="controls">
                  <input type="text" class="span11" name="icon" />
                </div>
              </div>

               <div class="control-group">
              <label class="control-label">是否启用:</label>
              <div class="controls">
                <label>
                  <input type="radio" checked="checked" value="1" name="status" />
                  是</label>
                <label>
                  <input type="radio" value="0" name="status" />
                  否</label>
              </div>
            </div>

              <div class="form-actions">
                <button type="button" onclick="closeParent();" class="btn btn-primary pull-right">取消</button>
                <button type="submit" class="btn btn-success pull-right">保存</button>&nbsp;
              </div>
            </form>
          </div>
        </div>
      </div>
</div>


</body>
</html>
<script type="text/javascript">
$(function(){
    $('input[type=checkbox],input[type=radio],input[type=file]').uniform();
    $('select').select2();
})
</script>